// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
Vue.config.productionTip = false
//首页 
import App from './index' 
//路由加载
import router from './js/routers'

//Vuex
import Vuex from 'vuex'
Vue.use(Vuex)
//vuex集成方法 
import store from  './store/store.js'

//axios 交互
import axios from 'axios'
Vue.prototype.$http = axios;
axios.defaults.withCredentials=false;
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'
axios.defaults.baseURL='http://api.zy1699.com';
//公共JS
import publics from './js/public.js'
Vue.prototype.$pub = publics;
//MD5加密
import md5 from 'js-md5' 

//mint-ui
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(Mint)

//rem计算单位
import './js/mobile.js'

//公共样式
import './css/public.css'


// 全局头部公用组件
import headers from './components/Other/headers'
Vue.component('headers', headers)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
